import VueRouter from "vue-router";
import Vue from "vue";
import home from '../views/home.vue'
import video from '../views/video.vue'
Vue.use(VueRouter)
const routes = [
    {
        path: '/',
        redirect:'/home'
    },
    {
        
        path: '/home',
        name: 'home',
        component:home
    }, {
        path: '/video',
        name: 'video',
        component:video
    }
]

export default  new VueRouter({
    routes: routes,
    mode:'hash'
})